package com.example.rfidserver.consume;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.example.rfidserver.R;
import com.example.rfidserver.consume.subactivity.IntegralMangagerActivity;
import com.example.rfidserver.consume.subactivity.SiteConsumeActivity;
import com.example.rfidserver.ticket.TicketManagerActivity;

public class ConsumeManagerActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_consume_manager);
    }



    //点击相应按钮，可以传递不同的viewid
    // 可以跳转到不同界面
    public void onClick(View view) {
        switch (view.getId()){
            case R.id.site_consume_manager:     //景点消费
                Intent siteConsumeActivity = new Intent(this, SiteConsumeActivity.class);
                startActivity(siteConsumeActivity);
                break;
            case R.id.consume_integral_manager:   //积分管理
                Intent integralMangagerActivity = new Intent(this, IntegralMangagerActivity.class);
                startActivity(integralMangagerActivity);
                break;
        }
    }



}
